/**
 * 商品中心路由
 */

const router = require('koa-router')();
const {
  getGoodsListService,
  downGoodsService
} = require('../../service/goodsServer');

//获取商品列表
router.get("/api/manage/GoodsList", async (ctx, next) => {
  let params = ctx.request.query;
  await getGoodsListService(ctx, params);
})

//下架商品
router.get("/api/manage/downGoods", async (ctx, next) => {
  let params = ctx.request.query;
  await downGoodsService(ctx, params);
})



module.exports = router;